<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2018/11/8
 * Time: 11:08
 */

namespace app\modules\abstractFactory\text;


abstract class Text
{
    public $text;

    public function __construct(string $text)
    {
        $this->text = $text;
    }

    abstract public function handleText();

    /**
     * @return mixed
     */
    protected function getText(): string
    {
        return $this->text;
    }
}